package com.kyrie.lib_sys.application.timeApplys.service;

import com.kyrie.lib_sys.application.timeApplys.pojo.entity.TimeRecord;
import com.kyrie.lib_sys.application.timeApplys.pojo.entity.ValidationResult;

import java.util.List;

public interface TimeRecordService {
    /**
     * 验证并保存时间记录
     * @param record
     * @return
     */
    ValidationResult validateAndSave(TimeRecord record);


    /**
     * 批量验证并保存时间记录
     * @param records
     * @param employeeId
     * @return
     */
    ValidationResult validateBatchWithExisting(List<TimeRecord> records, Long employeeId);

    /**
     * 根据员工id获取工时记录
     * @param employeeId
     * @return
     */
    List<TimeRecord> getEmployeeRecords(Long employeeId);



}
